﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Windows.Forms;

namespace WebApplication2
{
    public partial class Login : System.Web.UI.Page
    {
        public static bool mi = false;
        public static bool admin = false;

        string check;
        public string user;
        public string pass;
        public string SessoinID;
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (rbtnAdmin.Checked == true)
            {
                admin = true;
                Response.Redirect("Main.aspx");

            }
            else
            {

                //user = txtUser.Text;
                //pass = txtPass.Text;

                //SocialLearning.SocialLearningServiceClient client = new SocialLearning.SocialLearningServiceClient();
                //SessoinID = client.Login(user, pass).ToString();
                if (SessoinID == null)
                {
                    Button1.Attributes["onClick"] = "alertPass()";
                }
                else
                {
                    mi = true;
                    Response.Redirect("Main.aspx");
                }


         
            }
        }

        protected void Forgot_Click(Object sender, EventArgs e)
        {
            //string user = txtUser.Text;
            MessageBox.Show("sdfsef");
         
        }
    }
}